import Main from '_c/main'

export default [
  {
    path: '/content_management',
    name: '内容配置',
    meta: {
      icon: 'logo-buffer',
      title: '内容配置'
    },
    component: Main,
    children: [
      {
        path: 'index',
        name: '内容管理',
        meta: {
          icon: 'md-grid',
          title: '内容管理'
        },
        component: () => import('@/view/content/index.vue')
      },
      {
        path: 'tags',
        name: '标签管理',
        meta: {
          icon: 'md-grid',
          title: '标签管理'
        },
        component: () => import('@/view/content/index.vue')
      }
    ]
  },
  {
    path: '/user',
    name: '用户配置',
    meta: {
      icon: 'logo-buffer',
      title: '用户配置'
    },
    component: Main,
    children: [
      {
        path: 'index',
        name: 'user_management',
        meta: {
          icon: 'md-grid',
          title: '用户管理'
        },
        component: () => import('@/view/user/index.vue')
      }
    ]
  },
  {
    path: '/system',
    name: '系统管理',
    meta: {
      icon: 'md-settings',
      title: '系统管理'
    },
    component: Main,
    children: [
      {
        path: 'menu/index',
        name: '菜单管理',
        meta: {
          icon: 'ios-menu',
          title: '菜单管理'
        },
        component: () => import('@/view/sys/menu/index.vue')
      },
      {
        path: 'role/index',
        name: '角色管理',
        meta: {
          icon: 'md-key',
          title: '角色管理'
        },
        component: () => import('@/view/sys/role/index.vue')
      },
      {
        path: 'resource/index',
        name: '资源管理',
        meta: {
          icon: 'ios-folder',
          title: '资源管理'
        },
        component: () => import('@/view/sys/resource/index.vue')
      },
      {
        path: 'resource/category',
        name: '资源分类',
        meta: {
          icon: 'ios-folder',
          title: '资源分类',
          hideInMenu: true
        },
        component: () => import('@/view/sys/resource/categoryList.vue')
      }
    ]
  }
]
